package com.ruoyi.grape.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备管理对象 tb_grape_device
 * 
 * @author ld
 * @date 2023-11-18
 */
public class GrapeDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备号 */
    private Long deviceId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 地块号 */
    @Excel(name = "地块号")
    private Long devicePlot;

    /** 负责人 */
    @Excel(name = "负责人")
    private String deviceHead;

    /** 购买时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购买时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deviceTime;

    /** 经纬度 */
    @Excel(name = "经纬度")
    private String deviceLonlat;

    /** 园区号 */
    @Excel(name = "园区号")
    private String devicePark;

    /** 备注 */
    @Excel(name = "备注")
    private String deviceNote;

    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setDevicePlot(Long devicePlot) 
    {
        this.devicePlot = devicePlot;
    }

    public Long getDevicePlot() 
    {
        return devicePlot;
    }
    public void setDeviceHead(String deviceHead) 
    {
        this.deviceHead = deviceHead;
    }

    public String getDeviceHead() 
    {
        return deviceHead;
    }
    public void setDeviceTime(Date deviceTime) 
    {
        this.deviceTime = deviceTime;
    }

    public Date getDeviceTime() 
    {
        return deviceTime;
    }
    public void setDeviceLonlat(String deviceLonlat) 
    {
        this.deviceLonlat = deviceLonlat;
    }

    public String getDeviceLonlat() 
    {
        return deviceLonlat;
    }
    public void setDevicePark(String devicePark) 
    {
        this.devicePark = devicePark;
    }

    public String getDevicePark() 
    {
        return devicePark;
    }
    public void setDeviceNote(String deviceNote) 
    {
        this.deviceNote = deviceNote;
    }

    public String getDeviceNote() 
    {
        return deviceNote;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deviceId", getDeviceId())
            .append("deviceName", getDeviceName())
            .append("devicePlot", getDevicePlot())
            .append("deviceHead", getDeviceHead())
            .append("deviceTime", getDeviceTime())
            .append("deviceLonlat", getDeviceLonlat())
            .append("devicePark", getDevicePark())
            .append("deviceNote", getDeviceNote())
            .toString();
    }
}
